﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using ScrumLite.Services;
using ScrumLite.Services.Contracts;
using System.Collections.ObjectModel;

namespace ScrumLite.Gateways
{
    public class RoleServiceClient : ClientBase<IRolesService>, IRolesService
    {
        #region IRolesService Members

        public ProjectRole GetProjectRole(string roleId)
        {
            return base.Channel.GetProjectRole(roleId);
        }

        public Collection<ProjectRole> GetProjectRoles(string projectId)
        {
            return base.Channel.GetProjectRoles(projectId);
        }

        public Collection<Ability> GetAbilities(string projectId, string roleId)
        {
            return base.Channel.GetAbilities(projectId, roleId);
        }

        public void AddRoleToProject(string projectId, string roleName, string[] abilityIds)
        {
            base.Channel.AddRoleToProject(projectId, roleName, abilityIds);
        }

        #endregion
    }
}
